import { Http } from '@/utils/http'

/**
 * 获取诗歌信息
 * @returns 
 */
export function requestPoemsList (data: any)  {
    return Http.request({
        url: '/out/poemsList/getPoemsList',
        method: 'post',
        data: data
    })
}

/**
 * 将诗词加入诗单
 * @returns 
 */
export function requestAddPoetryToPoemsList (data: any)  {
    return Http.request({
        url: '/poemsList/addPoetryToPoemsList',
        method: 'post',
        data: data
    })
}

/**
 * 根据uid和诗单名称搜索诗单
 * @returns 
 */
export function requestSearchPoemsListByNameAndUid (data: any)  {
    return Http.request({
        url: '/poemsList/searchPoemsListByNameAndUid',
        method: 'post',
        data: data
    })
}

/**
 * 根据uid和诗单名称搜索诗单
 * @returns 
 */
export function requestSearchPoemsListByNameOrUid (data: any)  {
    return Http.request({
        url: '/out/poemsList/searchPoemsListByNameOrUid',
        method: 'post',
        data: data
    })
}

/**
 * 创建诗单
 * @returns 
 */
export function requestCreatePoemsList (data: any)  {
    return Http.request({
        url: '/poemsList/createPoemsList',
        method: 'post',
        data: data
    })
}

/**
 * 根据id删除诗单
 * @returns 
 */
export function requestDeletePoemsListById (data: any)  {
    return Http.request({
        url: '/poemsList/deletePoemsListById',
        method: 'post',
        data: data
    })
}

/**
 * 根据id获取诗单详情
 * @returns 
 */
export function requestPoemsListDetailByPlId (data: any)  {
    return Http.request({
        url: '/out/poemsList/searchPoemsListDetailByPlId',
        method: 'post',
        data: data
    })
}

/**
 * 编辑诗单
 * @param data 
 * @returns 
 */
export function requestEditPoemsListInfo (poemsListInfo: any)  {
    return Http.request({
        url: '/poemsList/editPoemsListInfo',
        method: 'POST',
        params: poemsListInfo
    })
}
